_Author_ = "Liu Ye"

# import time
# def  bar():
#     time.sleep(3)
#     print('in the bar')
#
# def test1(func):
#     start_time=time.time()
#     func()           #run  bar
#     stop_time=time.time()
#     print("the func time is %s"%(stop_time-start_time))
#
#
# test1(bar)
# # bar()
# #
# # func=bar
# func()


import time
def  bar():
    time.sleep(3)
    print('in the bar')
def test2(func):
    print(func)
    return func

# print(test2(bar))
bar=test2(bar)
bar()     #run bar
# print(t)